package com.witmed.main.adapter

import android.content.Context
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class FragAdapter(list: List<Fragment>,fm:FragmentManager,behavior:Int)
    :FragmentPagerAdapter(fm,behavior){
    var list=list

    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list.get(position)
    }
}